<?php
	require_once $_SERVER['DOCUMENT_ROOT'] . '/SAGER/logic/factory/CommandFactory.php';
	
	error_reporting (E_ALL ^ E_NOTICE);
	
	$debug = $_SESSION['debug'];
	
	class PresenterChangePurchaseOrder{
		
		public function __construct() {}
		
		public function clickChangePurchaseOrder ($pkNumber, $pkControlNumber, $date, $tax, $readStatus, 
			$fkIdNumberNaturalCustomer, $fkRifLegalClient) {
			
			$command = CommandFactory :: createCommandChangePurchaseOrder ($pkNumber, $pkControlNumber, $date, $tax, $readStatus,$fkIdNumberNaturalCustomer, $fkRifLegalClient);
			
			$command -> execute();		
			return $command->getResult();
		
		}	
	}
?>